#ifndef SEARCHWIDGET_H
#define SEARCHWIDGET_H

#include <QtGui/QWidget>

/*!

BlackRabbit - OpenSource IDE.
@author Edward Sarkisyan (edward.sarkisyan@gmail.com)
Use LGPL (http://www.gnu.org/copyleft/lesser.html)

*/

namespace Ui {
    class SearchWidget;
}

class SearchWidget : public QWidget {
    Q_OBJECT
public:
    /*!
      Constructor
      @arg parent Parent widget (default 0)
      */
    SearchWidget(QWidget *parent = 0);
    /*!
      Destructor
      */
    ~SearchWidget();
    /*!
      Adding new search engine
      @arg icon adding search engine licon/favicon
      @arg name adding search engine service name
      @arg query query will generate on using this search using (format http://"....%1")
      */
    void addSearchVariant(QIcon icon, QString name, QString query);

protected:
    void changeEvent(QEvent *e);

private:
    Ui::SearchWidget *m_ui;

private slots:
    void on_searchCombo_editTextChanged(QString );
    void search();
};

#endif // SEARCHWIDGET_H
